Table 1. Paired Bootstrap test

Main reference:
Wei, M.F., H. Chi, Y.F., Guo, X.W. Li, L.L. Zhao, R.Y. Ma. 2020. Demography of Cacopsylla
   chinensis (Hemiptera: Psyllidae) reared on four cultivars of Pyrus bretschneideri and 
   P. communis (Rosales: Rosaceae) pears with estimations of confidence intervals of
   specific life table statistics. J Econ Entomol 113(5): 2343-2353.

-----------------------------------------------------------------------------------------
The results of paired bootstrap test are presented in following three ways.
   1. Bootstrap t confidence intervals (assuming the results is normally distributed).
   2. Bootstrap percentile confidence intervals (based on the actual sampling results).
   3. P value based on number of bootstrap samples showing significant difference.
Because the t confidence intervals is based on the assumption of normal distribution, 
while the bootstrap percentile confidence interval is based on random sampling, they
are different. Although most biological and ecological data are mostly not normal,
the distribution of bootstrap sample means are generally normal (if B is large).
Therefore, a large number of resampling (B = 100,000) is needed to ensure a stable
estimate. However, 100,000 is still a tiny proportion of exact method. If the bootstrap
results are normally distributed, the t confidence interval is similar to the bootstrap
confidence interval.  Moreover, the results of significance test based on three methods
are consistent. Discrepant results will only be observed in extreme cases.
-----------------------------------------------------------------------------------------

Project: 
Number of treatments = 2 
Bootstrap number (B) = 100000 
Treatment 1 =D:\\...:\\ļ\\ȥѿ2\T_Effect Boot-B3_APOP.tx
          Variable: APOP
Treatment 2 =D:\\...:\\ļ\\ck2\ck_Effect Boot-B3_APOP.tx
          Variable: APOP
Comparison between 25C-APOP vs 25C-APOP
Number of bootstrap resamplings (B)= 100000 
========================================================================
                          25C-APOP                 25C-APOP
------------------------------------------------------------------------
Original =               1.81034482758621         1.68333333333333 
------------------------------------------------------------------------
Bootstrap mean =         1.81005344087789         1.68303930011519 
Variance =               1.61157121212348E-02     0.016799961784805 
SE =                     0.126947674737408        0.129614666549758 
n                        29                       30 
------------------------------------------------------------------------
Difference 1 = 0.12701149425288 
   Difference 1 is the difference of two original values.
------------------------------------------------------------------------
Difference 2 = 0.1270141407627 
   Difference 2 is the difference of two bootstrap means.
------------------------------------------------------------------------
Difference 3 = 0.127014140762765 
   Difference 3 is the mean of all paired bootstrap differences.
With the increase of B, diff. 2 and 3 will close to diff. 1.
------------------------------------------------------------------------
SE of 100000 differences = 0.181073141702266 
************************************************************************
* Bootstrap t confidence intervals:                                    *
* 95% CI:                Lower                    Upper                *
*                       -0.227882698340575        0.481910979866105    *
* No signif. diff. btw. 25C-APOP and 25C-APOP.                         *
* If the CI includes 0, there is no significant difference.            *
------------------------------------------------------------------------
------------------------------------------------------------------------
# Percentile confidence intervals of differences:                      #
# 95% CI:                Lower                    Upper                #
#                       -0.22779519331244         0.48465473145781     #
# No signif. diff. btw. 25C-APOP and 25C-APOP.                         #
# If the CI includes 0, there is no significant difference.            #
#----------------------------------------------------------------------#
# Number of insignif. diff. =  48311                                   #
# Number of signif. diff. =  51689                                     #
# P-value (based on bootstrap samples) =  0.48311                      #
------------------------------------------------------------------------
------------------------------------------------------------------------

References:
Smucker, Mark D., James Allan, and Ben Carterette. 2007. A Comparison of
   Statistical Significance Tests for Information Retrieval Evaluation.
   Proceedings of the Sixteenth ACM Conference on Conference on Information
   and Knowledge Management, Lisbon, Portugal.p. 623-632.
HesHesterberg, T., D. S. Moore, S. Monaghan, A. Clipson, and R. Epstein. 
   2005. Bootstrap methods and permutation tests. In D. S. Moore & G. P. 
   McCabe (Eds.), Introduction to the Practice of Statistics (5th ed.). New
   York, US: W. H. Freeman and Company.
Wei, M. F., H. Chi, Y. F. Guo, X. W. Li, L. L. Zhao, and R. Y. Ma. 2020.
   Demography of Cacopsylla chinensis (Hemiptera: Psyllidae) reared on four
   cultivars of Pyrus bretschneideri and P. communis (Rosales: Rosaceae) 
   pears with estimations of confidence intervals of specific life table
   statistics. Journal of Economic Entomology doi: 10.1093/jee/toaa149. 

 Table 2. Differences between treatments and lower CI
     (This CI is based on the bootstrap t confidence interval)
 [Upper right triangle: The difference between means (i,j)]
 [Lower left triangle: Lower CI of difference between means (i,j) based on t]
 
 =====================================
                25C-APOP   25C-APOP
 =====================================
 25C-APOP       ----       0.127 
 25C-APOP      -0.2279     ----
 =====================================
 *: Significant at 5% significance level
 The bootstrap t confidence interval might be different from the bootstrap percentile 
 confidence interval. 

 Table 3. Differences between treatments and P-value
 [Upper right triangle: The difference between means (i,j)]
 [Lower left triangle: P-value of the test between (i,j)]
 
 =====================================
                25C-APOP   25C-APOP
 =====================================
 25C-APOP       ----       0.127 
 25C-APOP       0.4831     ----
 =====================================
 *: Significant at 5% significance level

 Table 4. Differences between treatments (Paired bootstrap test)
 [Upper right triangle: P-value of the test between (i,j)]
 [Lower left triangle: The difference between means (i,j)]
 
 =====================================
                25C-APOP   25C-APOP
 =====================================
 25C-APOP       ----       0.4831 
 25C-APOP       0.127      ----
 =====================================
 *: Significant at 5% significance level

 Table 5. Differences between treatments (Paired bootstrap test)
 [Upper right triangle: P-value of the test between (i,j)]
 [Lower left triangle: P-value of the test between (j,i)]
 
 =====================================
                25C-APOP   25C-APOP
 =====================================
 25C-APOP       ------     0.4831 
 25C-APOP       0.4831     ------
 =====================================
 *: Significant at 5% significance level

 Table 6. Preliminary table of differences between treatments.
 You can use the following table to mark the differences between treatments.
 Only the differences between the first few treatments are marked for you.
 Note well! If this table is not completed, you have to complete the rest "_" 
 yourself. Attention! Not every "_" needs to be filled with a letter. 
 This is a good practice of "critical thinking". "Thinking is the
 most important thing in science".
 ===========================================================================
 Treatment     Mean                     SE                      Difference
 ---------------------------------------------------------------------------
 25C-APOP      1.81034482758621         0.126947674737408        a_
 25C-APOP      1.68333333333333         0.129614666549758        a_
 ---------------------------------------------------------------------------
